package com.jingdianjichi.subject.infra.basic.mapper;

import com.jingdianjichi.subject.infra.basic.entity.SubjectCategory;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
* @author 20432
* @description 针对表【subject_category(subject_category)】的数据库操作Mapper
* @createDate 2025-10-03 16:36:14
* @Entity com.jingdianjichi.subject.basic.entity.SubjectCategory
*/
public interface SubjectCategoryMapper extends BaseMapper<SubjectCategory> {

    @Select("select * from subject_category where id = #{id}")
    SubjectCategory queryById(Long id);

    List<SubjectCategory> queryCategoryList(SubjectCategory subjectCategory);

    void removeByCategoryId(Long id);

    void updateInfo(SubjectCategory subjectCategory);

    Integer querySubjectCount(Long id);
}




